namespace ConsoleApp1;

public class Iterator
{
    public void t1()
    {
        for (int i = 0; i < 3; i++)
        {
            Console.Write(i);
        }
    }

    public void t2()
    {
        List<int> fibNumbers = new() { 0, 1, 1, 2, 3, 5, 8, 13 };
        foreach (int element in fibNumbers)
        {
            Console.Write($"{element} ");
        }
    }

    public void t3()
    {
        // Span<int> numbers = [3, 14, 15, 92, 6];
        // foreach (int number in numbers)
        // {
        //     Console.Write($"{number} ");
        // }
    }
}